{include file='header.tpl'}
{include file="left-sidebar.tpl"}

			<!-- 内容区域 -->
			<div class="tpl-content-wrapper">
				<div class="row-content am-cf">
					<div class="row">
						<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
							<div class="widget am-cf">
								<div class="widget-head am-cf">
									<div class="widget-title  am-cf">案件列表</div>
								</div>
								<form class="am-form am-form-inline " style="padding: 10px 0" method="post" action="index.php?action=cases&func=search">
									<div class=" am-form-group am-form-select">
										<select style="width: 100px;" id="doc-select-1" name="option">
											<option value="Name">案件号</option>
											<option value="dealer">承办人</option>
											<option value="status">状态</option>
										</select>
										<span class=" am-form-caret"></span>
									</div>


									<div class="am-form-group">
										<input type="text" name="content" class="" id="doc-ipt-email-1" placeholder="请输入查询你的内容">
									</div>

									<button type="submit" class="am-btn am-btn-default">查询</button>
									<a href="index.php?action=cases&func=addcases">
										<button type="button" class="am-btn am-btn-success">添加案件</button>
									</a>
								</form>
								<div class="widget-body  am-fr">
									<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
										<div class="am-form-group">
											<div class="am-btn-toolbar">
												<div class="am-btn-group am-btn-group-xs">
													</div>
											</div>
										</div>
									</div>
									<div class="am-u-sm-12">
										<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
											<thead>
												<tr>
													<th>编号</th>
													<th>案件号</th>
													<th>承办人</th>
													<th>接收日期</th>
													<th>完成日期</th>
													<th>计划完成日期</th>
													<th>状态</th>
												</tr>
											</thead>
											<tbody>
												
												{foreach $res as $case}
													<tr class="{if date('Y-m-d H:i:s',time())>$case.except_date}
								am-danger
									{else}
							am-active
								{/if}">
													<td>{$case.c_id}</td>
													<td>{$case.Name}</td>
													<td>{$case.dealer}</td>
													<td>{$case.receive_date}</td>
													<td>{$case.finish_date}</td>
													<td>{$case.except_date}</td>
													<td>{$case.status}</td>
													<td>
														<div class="tpl-table-black-operation">
															<a href="index.php?action=cases&func=editeq&c_id={$case.c_id}" >
																<i class="am-icon-pencil"></i> 编辑
															</a>
															<a href="index.php?action=cases&func=delect&c_id={$case.c_id}"  class="tpl-table-black-operation-del">
																<i class="am-icon-trash"></i> 删除
															</a>
														</div>
													</td>
												</tr>
												{/foreach}
												

												
												<!-- more data -->
											</tbody>
										</table>
									</div>
									<!-- 简单分页,要另外一种请去20181010日看代码-->
									<div class="am-u-lg-12 am-cf">
										<div class="am-fr">
											<ul class="am-pagination tpl-pagination">
												{if $page ==1 }
													<li class="am-disabled" ><a href='#' >&laquo;</a></li>
												{else}
													<li ><a class="am-active" href="index.php?action=cases&func=index&page={$page-1}">«</a></li>
												{/if}
													<li ><a href="index.php?action=cases&func=index&page={$page}">{$page}/{$count_page}</a></li>
												{if $page == $count_page }
													<li class="am-disabled"><a href="#">&raquo;</a></li>
												{else}
													<li><a class="am-active"  href="index.php?action=cases&func=index&page={$page+1}" >»</a></li>
												{/if}
											</ul>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<script src="{$_SOURCEDIR}/js/amazeui.min.js"></script>
		<script src="{$_SOURCEDIR}/js/amazeui.datatables.min.js"></script>
		<script src="{$_SOURCEDIR}/js/dataTables.responsive.min.js"></script>
		<script src="{$_SOURCEDIR}/js/app.js"></script>


	</body>

</html>